package com.gaofans.vertx.boot.dbutils.mapper.columns;

import com.gaofans.vertx.boot.dbutils.mapper.ColumnMapper;
import io.vertx.sqlclient.Row;
import io.vertx.sqlclient.data.Numeric;

public class NumericColumnMapper implements ColumnMapper {
    @Override
    public boolean match(Class<?> propType) {
        return propType.equals(Numeric.class);
    }

    @Override
    public Object apply(Row r,String columnName) {
        return r.getNumeric(columnName);
    }
}
